package com.dime.physical.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dime.physical.mapper.DimeMaincheckotherdiseaseMapper;
import com.dime.physical.domain.DimeMaincheckotherdisease;
import com.dime.physical.service.IDimeMaincheckotherdiseaseService;

/**
 * 主检其他疾病异常Service业务层处理
 * 
 * @author Tiny
 * @date 2024-02-28
 */
@Service
public class DimeMaincheckotherdiseaseServiceImpl implements IDimeMaincheckotherdiseaseService 
{
    @Autowired
    private DimeMaincheckotherdiseaseMapper dimeMaincheckotherdiseaseMapper;

    /**
     * 查询主检其他疾病异常
     * 
     * @param id 主检其他疾病异常主键
     * @return 主检其他疾病异常
     */
    @Override
    public DimeMaincheckotherdisease selectDimeMaincheckotherdiseaseById(String id)
    {
        return dimeMaincheckotherdiseaseMapper.selectDimeMaincheckotherdiseaseById(id);
    }

    /**
     * 查询主检其他疾病异常列表
     * 
     * @param dimeMaincheckotherdisease 主检其他疾病异常
     * @return 主检其他疾病异常
     */
    @Override
    public List<DimeMaincheckotherdisease> selectDimeMaincheckotherdiseaseList(DimeMaincheckotherdisease dimeMaincheckotherdisease)
    {
        return dimeMaincheckotherdiseaseMapper.selectDimeMaincheckotherdiseaseList(dimeMaincheckotherdisease);
    }

    /**
     * 新增主检其他疾病异常
     * 
     * @param dimeMaincheckotherdisease 主检其他疾病异常
     * @return 结果
     */
    @Override
    public int insertDimeMaincheckotherdisease(DimeMaincheckotherdisease dimeMaincheckotherdisease)
    {
        dimeMaincheckotherdisease.setCreateTime(DateUtils.getNowDate());
        return dimeMaincheckotherdiseaseMapper.insertDimeMaincheckotherdisease(dimeMaincheckotherdisease);
    }

    /**
     * 修改主检其他疾病异常
     * 
     * @param dimeMaincheckotherdisease 主检其他疾病异常
     * @return 结果
     */
    @Override
    public int updateDimeMaincheckotherdisease(DimeMaincheckotherdisease dimeMaincheckotherdisease)
    {
        dimeMaincheckotherdisease.setUpdateTime(DateUtils.getNowDate());
        return dimeMaincheckotherdiseaseMapper.updateDimeMaincheckotherdisease(dimeMaincheckotherdisease);
    }

    /**
     * 批量删除主检其他疾病异常
     * 
     * @param ids 需要删除的主检其他疾病异常主键
     * @return 结果
     */
    @Override
    public int deleteDimeMaincheckotherdiseaseByIds(String[] ids)
    {
        return dimeMaincheckotherdiseaseMapper.deleteDimeMaincheckotherdiseaseByIds(ids);
    }

    /**
     * 删除主检其他疾病异常信息
     * 
     * @param id 主检其他疾病异常主键
     * @return 结果
     */
    @Override
    public int deleteDimeMaincheckotherdiseaseById(String id)
    {
        return dimeMaincheckotherdiseaseMapper.deleteDimeMaincheckotherdiseaseById(id);
    }
}
